{template header}

<!--{if empty($infloat) && empty($inajax)}-->
<div id="nav"><a href="$indexname">$bbname</a> &raquo; {$username}{lang iirs_userPostList:his_subjects}</div>
<div id="wrap" class="wrap s_clear">
	<div class="main"><div class="content nofloat">
<!--{/if}-->

<div class="fcontent">
    <h3 class="float_ctrl">
    <em id="return_$handlekey">{$username}{lang iirs_userPostList:his_subjects}</em>
    <span>
        <a href="plugin.php?id=iirs_userPostList:frontLoader&action=getThreadlist&uid={$uid}" onclick="javascript: showWindow('iirs_userPostList_{$uid}', this.href, 'get', 1);return false;">[{$username}{lang iirs_userPostList:his_subjects}]</a>
        <a href="plugin.php?id=iirs_userPostList:frontLoader&action=getPostlist&uid={$uid}" onclick="javascript: showWindow('iirs_userPostList_{$uid}', this.href, 'get', 1);return false;">[{$username}{lang iirs_userPostList:his_replies}]</a>
        <!--{if !empty($infloat)  || !empty($inajax)}--><a href="javascript:;" class="float_close" onclick="hideWindow('$handlekey')" title="{lang iirs_userPostList:close}">&nbsp;&nbsp;&nbsp;&nbsp;{lang iirs_userPostList:close}</a><!--{/if}-->
    </span>
    </h3>

    <div class="floatwrap">
        <table class="list" cellspacing="0" cellpadding="0">
            <thead class="colplural">
                <tr>
                    <td class="icon">&nbsp;</td>
                    <td class="subject"><b>{lang iirs_userPostList:subject}</b></td>
                    <td><b>{lang iirs_userPostList:forum}</b></td>
                    <td class="lastpost"><b>{lang iirs_userPostList:lastpost}</b></td>
                </tr>
            </thead>
            
            <!--{if empty($datalist)}-->
                <tr class="colplural"><td colspan="4">{lang iirs_userPostList:nodata}</td></tr>
            <!--{else}-->
                <!--{loop $datalist $tid $thread}-->
                    <tr>
                        <td class="icon"><!--{if $thread['iconid']>0 && isset($_DCACHE['icons'][$thread['iconid']]) }--><img src="images/icons/{$_DCACHE['icons'][$thread['iconid']]}" onerror="this.onerror=null;this.src='plugins/iirs_userPostList/Public/Images/icon1.gif'" class="icon" /><!--{else}-->&nbsp;<!--{/if}--></td>
                        <td class="subject"><a href="viewthread.php?tid={$tid}" target="_blank">{$thread['subject']}</a><!--{if $thread['readperm'] && $thread['readperm'] > $readaccess}--><em style="color: #999999;">[{lang iirs_userPostList:not_enough_read_permission}]</em><!--{/if}--></td>
                        <td><a href="forumdisplay.php?fid={$thread['fid']}" target="_blank">{$_DCACHE['forums'][$thread['fid']]['name']}</a></td>
                        <td class="lastpost">
                            <cite><!--{if $thread['lastposter']}--><a href="space.php?username={$thread[lastposterenc]}">{$thread[lastposter]}</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
                            <em><a href="redirect.php?tid={$thread[tid]}&amp;goto=lastpost#lastpost">{$thread[lastpost]}</a></em>
                        </td>
                    </tr>
                <!--{/loop}-->
            <!--{/if}-->
            
        </table>
    </div>

    
    <div class="pages">
    <!--{if !empty($multipage)}-->$multipage<!--{/if}-->
    </div>

    {template iirs_userPostList:Copyright}

</div>

<!--{if empty($infloat)}-->
	</div></div>
</div>
<!--{/if}-->

{template footer}